Fix null update query.