Fixes crash after updating media items.

Use NSDictionary+SafeExpectations access when updating a media item.

Fixes #1517