The result of getTreeList() called in overrideStoragePidIfStartingPointIsSet()
may be an empty string, which is appended to the $list array.
Empty values should not be added to the array, since it will cause an invalid
list of pages later on.
Add a check to avoid empty values in $list.