better check for more formula token types, related fdo#74077

Change-Id: I1723b5640fe438e72d1bbe2946c3aac0ae244e81