Check that the required option is not None

localOptions is a dict, and the required option may be None.
This adds a test for this case.