xcfd check added

Found an odd file where the xcf flag is set, but the data array doesn't exist.  You can never be too sure what kind of file you're going to get.  So here I added it to the if condition that the xcfd[0] array cannot be NULL.