Fix local_request? from throwing an exception

See Issue #125 - currently better_errors just throws an exception on every page with a puma+nginx setup.