Module: Added paramter $needed = true to getRoute(). If false, unexisting route won't throw an exception.