Fix for issue #1388 

When there is no marks self.total_mark is 0. Condition is used to avoid  division by 0.
Fix issue #1388