handle condition of no data for contracts_Document and contracts_ContactBook classes