BUGFIX: fixed exception from nil request.location