Added not a number guard