Only submit files without errors. Closes #2770
Merge branch 'master' into gh-pages