Fix some crashes seen when using the :suspicious-test linter