Add isNone helper function to PythonInterface.

boost python only introduced object::is_none in version 1.43. The helper
uses it if it is present but falls back to checking manually if not.
Refs #7607