Fix Database::upsert() method if an update parameter is null