Removed the hacky timeout (:D) and instead listened to the shown.bs.modal event fired by Bootstrap.

Due to a bug in Angular (I think?) I still needed to wrap this in a
timeout of 0ms. Don’t ask me why.