Fixed Null Error in subMaps

Replaced a null return with an empty tree return in head and tail Map.