Make getConstant default value optional
Signed-off-by:Yassine Guedidi <yassine.guedidi@gmail.com>