Before this commit, the mongo implementation of job execution DAO did not upgrade the status of the job execution when synchronizing the state with the database. This commit fixes the issue by upgrading the status when appropriate, similar to the jdbc implementation. Resolves #4760