only compare plugin names if ID of one or both plugins NULL