Fixes 500 error on bulk add files to set

Fixes #939