Make sure that we preventDefault on the cancel button. Fixes https://github.com/vector-im/riot-web/issues/3066