Fixed bug where dialogs using inlinepopups plugin would display incorrectly sometimes