Fix for not properly closed modal

After modal was removed from DOM, there was still possibility that "modal-open" class was left on body element. This happened only in case if modal buttons didn't have data-dismiss="modal" attribute. This fix triggers normal bootstrap hiding process and removes element from DOM afterwards.