[BUGFIX] Fix else return for nested issue reporting

Fixes #1369  
@nzakas Please review, thanks!  I'm not convinced this is the best implementation, but it seems to satisfy all the use-cases I could think of.
This shared state is really gross. Try having your functions return values rather than mutate shared state.