BUG: fix use of np.max in stats.fisher_exact

fixes #3014
Merge pull request #3347 from andreas-h/gh3014

BUG: fix use of np.max in stats.fisher_exact