Improved exception handling when a webpart is rendered.

Improved the horizontal sizing of a webpart (by setting it to the parent container's width).