fix #3534: NullPointerException in getInternalStorageBase