fix an npe in analysis

Don't send top-level files into builders (fixes #2383).

@ussuri