Fix media URL query failure with backup URL exist