Prevent making bind param if casted value is nil
#29282

kamipo wants to merge kamipo:prevent_making_bind_param_if_casted_value_is_nil into rails:master

We do not currently have an analysis of these two commits