Fix possible null pointer exception due to race condition not instantiating appFragment.sortBy in time for NetworkLog.onPrepareOptionsMenu()
Return "" instead of null when not reading any characters in getString()