glib-2.0: Allow null hooks for OptionGroup

Allow null pre-parse, post-parse, error and translation hooks.

Fixed bug #729954.