Fixed issue preventing widgets from being deleted if an uploadfield is
present