Feature/fix advanced search

https://github.com/mayan-edms/mayan-edms/issues/46 confirmed, here is a simple fix