str_replace with empty array should return array

Handle empty array in str_replace like Zend and return an empty array instead of null.