Ummmm....being a statically typed monkey I'm not entirely sure what the error here is. But the fix is attached. I think someone must have refactored the code, but not changed all the references to BuildMedia.
BuildMedia is in gui not mode BuildMedia.in.GUI.diff
Applied to master and branch F-9