Fixed null-pointer exception when no site template exists.