Ignore exceptions triggered by NoneType objects