Custom widget displaying the word "null" when rendered

I have a custom widget that processes some javascript.  It works fine in v11, however, in v12, it displays the word null on screen.   I tested this with new custom widget that has no code and it also just displays the word "null" on the screen.  How do I get rid of this?  It is in my header so it shows up on every page.

Parents Reply Children
No Data