Fix book count in tooltip of choose library button not updating

Fixes #1208217 [library toolbar button not updated on book deletion](https://bugs.launchpad.net/calibre/+bug/1208217)
Do not popup an error dialog for invalid message

Do not popup an error dialog when an invalid message is received from
another instance, unless we are in DEBUG mode. See #1207947