Check if iframe exists before clearing custom data