* Prevent recursion errors in XDebug.
* Minor parsing optimization.
* Added a message in case no errors are found.
* Adding $theme global for SMF mainline/forks. (fix-globals has no external contributions, but I'm the only one to use it. Hint.)

Signed-off-by: Nao <nao@wedge>