#70587Remove the first few E_NOTICEs occuring in the unit tests
Description
First child issue of #70584
This patch removes some of the first thrown E_NOTICEs when running the core unit tests.
The locations of the changes may occur odd and without correlation, but they are not.
Refer to the parent issue for more details.