Store may be None for an editor.

If there is no store, we just ignore the pending changes count

Change-Id: Ie6cb34abc58af35c6000674c55af35e2c00d1679
(cherry picked from commit c57bda197ddfc2a3e351f7dd28b79e0dc69bd3bd)