Bug 730396: GIMP crashes loading a XCF it saved

add few validity checks loading a xcf file.

(cherry picked from commit a64a319d78455a13d51fc7983fa18ce7ce5549d8)

Conflicts:
	app/xcf/xcf-load.c