Dirty fix for nullpointer exception - it seems like the Android is asking for nonexistent sections at the end of the list, so return 1 instead of null if no value is present in the map.