Fixed bug where previewing an incomplete exam was allowed.

Exam can only be previewed if has items, items are valid and an
allotted time has been set