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

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