Fixes #717, needed to make sure to not pass a null value to the where clause, which was causing the exception.
Additional null protections in WordPressDB.saveMediaFile().
Merge pull request #718 from wordpress-mobile/issue/717-gingerbread-media-crash

Fixes #717