Fix PluginManager warning on shutdown

Don't try to deregister settingspage if it's a zero pointer.

Change-Id: If70370bf117713f0a9495e720f0df907c7a9df56
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>