simple bugfix on search

When I try to use the search on top menu bar
![search_screen](https://cloud.githubusercontent.com/assets/21313/2979894/52ff7dfe-dbd9-11e3-9003-5b969cd3732f.jpg)
 
I got this error local:
![error_search_local](https://cloud.githubusercontent.com/assets/21313/2979883/31ed57d0-dbd9-11e3-850e-095ab82e72fc.jpg)

same error on production:
![search_prod](https://cloud.githubusercontent.com/assets/21313/2979892/44c79a46-dbd9-11e3-981f-3644bbc869d4.jpg)