Fix for 1.9.0.1

Ported from app/code/core/Mage/CatalogSearch/controllers/ResultController.php