Fixing validation of error in the state query for ns3 application