Bug 730980: GIMP enters an infinite loop loading a truncated xcf

(cherry picked from commit fe4502fe0410b25dfac999daad3127263bae7e0d)

Conflicts:
	app/xcf/xcf-load.c