chore(modal): fix tests for IE9

Check if transitions are available before attempting to wait for them.

Closes #1537