PE-1624 - Cast NULL returned by "SELECT @non_existing_user_var" to the
proper type.