check that the rubric isset before carrying on to avoid an exception being thrown
Merge pull request #597 from unikent/fix/rubric-undefined

A potential fix for #335