Fix parsing exception causing infinite loop

Fixes SMACK-613
Smack 4.0.5
Merge branch '4.0'

Conflicts:
	build.gradle
	smack-tcp/src/main/java/org/jivesoftware/smack/tcp/PacketReader.java