Figarocorso/division by zero pagesize

A community user arose this issue: https://tracker.zentyal.org/issues/177

I have not been able to reproduce it, but, as the fix seemed to be quite easy, here it is.