Handle null state on close in FileMaker

If getLine() is not called due to some other exception
in AbstractRepositoryI, then FileMaker.close() should
not blindly try to close the lock.
Merge pull request #945 from joshmoore/rebased/develop/filemaker-npe

Handle null state on close in FileMaker (rebased onto develop)