Fix bug in upgrade step if 4.3.1 pending has been tested

I had a bug when executing the upgrade step because imaging_properties.quality was equal to 88 whereas imaging_properties.hasProperty('quality') was False and "quality" was not in properties dict.