mouse_events: use unit_map::iterator::operator bool to simplify

the new syntax allows to greatly improve readability by eliminating
many cumbersome expressions which grab the unit_map somehow and
compare with ::end()