Issue #3368310 by edmund.dunn, swirt, skyriter, heddn: str_replace throws php error when source contains null