[BUGFIX] fixing PHP warning: empty object

Fix PHP Warning "empty object" while getting typoscript template.
Create fake TSFE Object.

Resolves: #59635
Releases: 4.0
Change-Id: Ic67ff2eb4d537818a0740e32cd59a67015cd0b83
Reviewed-on: http://review.typo3.org/33260
Reviewed-by: Jan-Claas Dirks <jcd@jcd.cc>
Tested-by: Jan-Claas Dirks <jcd@jcd.cc>
Reviewed-by: Ivan Dharma Kartolo <ivan.kartolo@gmail.com>
Tested-by: Ivan Dharma Kartolo <ivan.kartolo@gmail.com>