This is a problem that happened before, but according to github it was fixed in 2017. Well, it was not. Depending on the side of the chest the removed item is, comparator will update or won't. It will happen only if removed by a hopper or minecart with hopper. If you remove items manually it works good.