Fix notices for missing post_type before save