Make SVGMessageGroup::register cheap

More specifically, use $dbw->affectedRows() to
check whether the MessageIndex cache actually
need to be rebuilt.

Change-Id: I49b572c3f7512d80df0c0ddd6e7c94598568b50d