Ignore browsers without mouse support

Some browsers (e.g. PhantomJS) don't have mouse support. Let's ignore them instead of throwing an error on an undefined ui.mouse.prototype.