Fixed #23857 -- Fixed admin crash with "save as new" and deleting inline.

Thanks amarandon for the report.