Fixed a an issue in BaseHttpservlet relying on an InputStream. Changed

that to check if a writer is also available, to avoid an
IllegalStateException.