Update App.php

Fix for Invalid Paths not showing 404