Better checks for empty post parent in rssmi_delete_posts_admin_attachment() and rssmi_delete_attachment()