Fix to JS-236 NPE

Fixing the NPE issue - see email for further comments. I've taken the tack that the incFile should either not be there (null) or should be there but should both readable and writeable.