Changed logger attribute from warning to error in case of null some null
arguments.