don't crash in a migration if a prodct has an empty last modified date

Could be shortened to
```py
if 'last_modified' in product and product['last_modified']:
```
which avoids creating a list of keys in Python2