Added checking for empty word documents
Added checking for empty word documents