prevent exception on typography.Text construction

I'm new to plotdevice and was trying out some library examples. I saw quite a few exceptions on code using textwidth. It turned out to be a problem in the  typography.Text constructor when values contained None.

The problem can be easily reproduced by adding the following line to a new plotdevice window and then run it:

`measure('obj')`