innerHtml implementation
Guard against NPE