fixes map unbind bug

Fixes a bug i encountered while unbinding events on a map. If there are no events bound on a map, it throws an error, see http://jsfiddle.net/4ZxcL/