returning a http 404 not found code when the queryhandling middleware gets a null result from a queryhandler
fixed a failing test because the gethashcode() method that is used in the queryhandlingmiddleware can result in different hashcodes when calling it from different machines running a different version of the .net framework.