[fix] use correct condition statement test for media url replacements