Changed some code in MapEntryRead to check if map is valid before
retrieving iterator.  Few changes to Common classes.