Added more error checking to admin/embed for dynamic objects chooser