Fix: Previous database status is overwritten to UNKNOWN
JobRecord object initialision always attaches a state machine in state UNKNOWN. This can overwrite the status loaded from database in certain conditions.
JobRecord object initialision always attaches a state machine in state UNKNOWN. This can overwrite the status loaded from database in certain conditions.