Improved ServerServlet.createComponent() to address issue #766.