Use TRAIT_DEFAULT_VALUE when cannot get real trait value

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>