Fixed media upload dialogue for WP 3.6