- wrapped max() and division calls to solve problems with empty objects

I was messing around with some placeholder objects and was getting exceptions because they didn't have any visible fields.  Probably a rather unusual problem, but a simple enough fix so I thought I'd send it along.