Ensure the modal template is loaded before showing it.