Critical bugfix and relevant unit test: throw no NPE when uploading a brand new CSV file.