NXP-11142: fix onclose method on fancybox using iframe