Fix PHP 5.3 fatal error on custom archive pages