MediaFile: detect missing numbers (fix #901)