Set routes property to empty array instead of null

When running dispatch without any routes, iterating through the routes property throws an error. This pull request fixes that behaviour.