edx/edx-platform — pull request #6329 by dmitchell (2014-12-19 18:11:46+00:00)
Title: Fix get_courses to handle inflight changes

more rigorously.

@cpennington if you don't have time to review, please punt to someone capable
@mattdrayer @ziafazal this should fix your problem. please review and confirm. (I did red-yellow-green TDD)