Previously all some of wrong values were silently ignored but some
resulted in HTTP 500 Server Error.
New policy is to validate all values and return HTTP 404 Not Found
if there are any wrong values.
Closes bug 1373980
Closes bug 1361647
Change-Id: Ib2968b2188070863b2ea6df25c35ad729a72ede5