added validation to registermetrics to have timebucketSizeInSecs >= 1

added validation so one cannot register a metric with timeBucketSizeInSecs <= 0 (that crashes the topology)