Fixed bug which prevented the state of the views from being properly saved

The bug came from a situation similar to this:
http://stackoverflow.com/questions/15024892/two-searchviews-in-one-activ
ity-and-screen-rotation