Fix for #178. Update error count when it's 0.