Support unknown THROW()-style macros in symboldatabase; Fixed #5056.
Simplified related code.