Fix Compatibility Issue with Typo3 6.x #3

fixes https://github.com/rtp-ch/smarty/issues/3