Remove trailing slashes in `Dbafs::addResource()` (see #5707)