Fix wheaty exception report counting reference symbols as 2 nesting levels, not logging child objects in some cases, i.e. spell id in SpellEvent crash.
(cherry picked from commit 4c866a0af0ffe1828c5694de7ef7007cefb46966)
These changes enables to build tools only without even having MySQL installed