fix($location): prevent navigation when event isDefaultPrevented