Changed not to store empty document to search db