JDBC River: default for sql parameter is an empty string

River.serialize() raised exception on self.sql.replace, when no sql parameter was given during initialization.