Fix regression for empty string path in app.use

fixes #2361
fixes #2362