Fix an error while converting to H2 database when is_locked column is null