Improved validation of defined but null parameters