Fix fatal error in metabox saving