Fixed a bug with modals where an exception would be thrown if the modal was closed while loading
Merge pull request #555 from reciprocity/feature/modal_close

Fixed a modal bug where an exception would throw when closing a modal during loading