Better is_404 check when WP is using page template