Fixes error on media attribute when updating product