Fixes BSONStorage handling of a null map

BSONStorage throws NullPointerException if input for getTypeForBSON is a null object but schema is of a map.