Fixed widget creation page

Originally, whenever a user tried to configure a widget on the configuration page, the document's body would be set to an HTTP error code. This fixes this issue.