OZF-477: fixed the error message returned for deleting a type with listings