Don't run when there's no filetype set.

Implements the smaller part of issue #178.