Fix backports-incompatable use of const_get variable in ternary conditional?