Fix null point exception in contest page

Fix #193