Fix sreplace with a null pattern or replacement