Resource parameter cleanup: interpret an empty string as nil

When resource is sent over GET in query params, it is not
encoded in JSON, therefore the nil/null is received
as an empty string.