Fixing crash when the failure handler is nil.