Log out errors when null docs are encountered