Correct parser to ignore escaped quotes when not in quotes already

Related to #8481
Catch task parameter splitting errors nicely

Fixes #8481