Check first if $_POST variables are set before assigning their values when saving the metabox