HEAD backport: Added a check to handle the case when the $errors flag was not defined. (mike)
Changed paths: