Fixed bug in null references validation.