R600: Fix assert on empty function