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

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