Fixed IDL for createPattern

Most browsers allow null or the empty string for the second argument to createPattern.
Fixed IDL and prose to reflect this