Fixed github issue 3: Media Library upload causes servlet exception