Fix opening ajaxmodals from ajaxmodals with new Foundation versions