Fixes course search bug where list union would fail.