Make MathObject::constructformpagerow more robust

When the MathObject constructor constructformpagerow
is called with false an error occurred.

Change-Id: I590b1a901e90759882bb3e8d00bf689d3790b5b6