Hide resize handler when a map fails to load