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 to use the 'if' to block the correct code.