OPAL-2473 - make sure to unregister a datasource from the view manager once the latter is deleted or its database type has changed