Clear the widget contents when Angular sends undefined for newValue

Fix #299