KT-5773 Smart cast doesn't work with Nothing on the rhs of "?:"
 #KT-5773 FIxed