Protect against a None callback in the filewrapper.