308f5bc Serialize component build state trace correctly if state is None

Authored and Committed by cqi a year ago
    Serialize component build state trace correctly if state is None
    
    Fixes #1179
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>