Fix gateway widget status update

Redmine #4077
Merge pull request #1366 from phil-davis/patch-1