MAINT: remove some inf-related warnings from logsumexp

see https://github.com/scipy/scipy/issues/4014