Modify null pointer dereferenced in _media_thumb_get_thumb_path_from_db