Fixed doc example and added more explicit documentation showing how to detect missing optional parameters. The behaviour of missing optional parameters changed in the previous release, but the suggested detection mechanism is backwards compatible. (Sorry, Christopher!)