[FIX] handle the case of empty attributes for document in spotlight