Fixed bug destroying the advanced search form

Bug introduced in commit 14e360df7fb6786da7515935e1246705e5b7b069 when
added support to remove elements from search-page.