Fix parsing exception causing infinite loop

Fixes SMACK-613
Smack 4.0.5
Smack 4.0.6-SNAPSHOT