[BUGFIX] undeclared property $coreLoaded

The Variable should be declared as it seems to cause some problems if not.

Resolves: #35141