Silence AttributeError from optional callbacks to app