Added warning if asWidget is called while being null

I don't know... Seems too agressive for me...