Update App.php

Fix for Invalid Paths not showing 404

this took hours to debug...