Fixes #482 caused by not passing the widgetIndex and x and y coordinates.
Added some checks on object loading to eventualy fix #225
Merge pull request #486 from duncanspumpkin/fix_482

Fix #482