Specify post ID when using wp_enqueue_media() to set up correctly for the post being edited.