Fix #2385: guard against constant_id on non-const.
1 file changed