Fixed bug in random ungraded
Fixed a bug which would cause a crash if the only submissions were
those which didn't have and code submitted.