Fixes error on `modal:open` when previous `modal:open` failed (bad HTTP response)

The `current`, but not open model isn't cleared when an Ajax request fails. This causes an unnecessary attempt to close the unopened modal, causing an error due to no `blocker` being created.