Fix Folder::getById

Fixes #10173

With the removal of the Shared folder the logic for `View::getPath($id)` was updated but `Folder::getById($id)` was forgotten.

cc @MorrisJobke @DeepDiver1975