Fixing use of continue when not in a loop.

Seems to have caught a lot of white space issues too. Was supposed to be simple fix :-(
Line 1319 uses a continue, but there is no loop. Fixed the 'if' to use the correct block of code.