Fix BlacklistUpdate::saveState

* Needed to be public, otherwise PHP complains.
* Was missing a few global declarations
* Don't bother saving if everything completed properly

Change-Id: I98d4fd287490d5607b3c453d6468e5bd43e462ed