Hey, I'm still getting this issue. It's happening when I have only 1 Pokémon in my party and that Pokémon is fainted.
EDIT: After thinking about this, it would never happen in a real game as you would pass out in that situation and was only happening due to the fact I was using debug tools.