Cannot use 'in' operator to String object if frame is a DataURI formatted string