Make wait_for_requirejs more tolerant of errors

This should resolve the acceptance test failures in course-settings.feature on master.

@singingwolfboy @jzoldak