Issue #2836285 by gfcamilo, tstoeckler: Error when uninstalling Libraries API if there are library definitions