fix state check in uptime calc
remove unused result line
Merge pull request #1771 from MauriceManning/1731_rebase

OOIION-1731Uptime not displaying properly for a dataset agent for a platform