Fixed issue #122

Error described in https://github.com/1up-lab/OneupUploaderBundle/issues/122 dissapeared after this fix.