Fix problem when $submission->group isn't set

See https://github.com/catalyst/moodle-assignsubmission-mahara/issues/13
Should be using viewstatus, rather than status