Various fixes to errors in use of new Client code.
Fixes to various null pointer and other errors in the GedcomxApplicationState and related classes.