Update widget.lua

Prevents a stupid error from happening
Update nocollide.lua

Prevents a stupid error from happening
Merge pull request #778 from Leystryku/master

Prevented 2 errors from happening