fix(code): More corrections for PHP's notices/fatal errors (refs #3108)