Fixing bug in the search ajax filemanager see BT#6675