[bug 884777] Fixed media galery validation