Make reverse matching robust to errored courses

@cpennington fixes the problem we had on edge and makes the reverse matching actually useful

I reproduced the problem by adding a tab of type "wiko" to a course and then put in this patch.