log errors when widget not displayed, fix #639