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

fix state check in uptime calc. Verified in UI.

@jamie-cyber1 please review