Minor edits to new findstatic functionality; refs #19879.

Hopefully fixes a test failure on Jenkins.