Fix for crash bug caused by Iframe NULL reference