Fixed a bug that was causing 400 errors to be thrown instead of 404 when getting single entities.