404 page appears when a user can't be found
Added a check to only add the params when they are present otherwise it blows up!
Amended the spec as it was incorrect