Stop return invalid AST entries on empty folders

Should probably not include them in the output, but letting it slide for
now