hasLayer not checking for null
Return false when checking for a null object in L.Map.hasLayer, in
response to issue #1282.
Merge pull request #1302 from rvlasveld/fix_hasLayer_check_for_null

hasLayer not checking for null