Fixing a bug in the theme listener for 404s

Setting the Theme listener to abort whenever we don't have a route
match as theme is based on that currently
Setting phpunit to be a require-dev dependency and not a primary dependency