Remove weird check that breaks some installs.

Removing this check in templatelayout.php fixes #3004 and I can't find any side-effects.
@bartv2 @icewind1991 @zimba12 @eMerzh