PHP notice fix
Fixes #145 - frontpage theme layout detection bug