Fix wildcard routes breaking static files

Fixes #370 by checking for a static file before checking for a possible 405 error.