Changed null parameter policy implementation: each check shall have its
own return statement.
Also provided more meaningful error messages.