Fixed fatal error when setting a redirect page for product search (#1068)