Restore version file when it is crashed

:Release Notes:
Restore version file when it is crashed

:Detailed Notes:
Check whether the result of parsing indicates error or not
If an error occurs then restore it

:Testing Performed:
tested in local build

:QA Notes:

:Issues Addressed:
[GF-56049] Restore version file when it is crashed

Open-webOS-DCO-1.0-Signed-off-by: Boyung Kim <boyung.kim@lge.com>

Change-Id: I5fbc50c90db630ad40fe3523016fdb575ac6f36c
Reviewed-on: https://g2g.palm.com/4248
Reviewed-by: DCO Verification
Reviewed-by: Boyung Kim <boyung.kim@lge.com>
Reviewed-by: Maksym Sditanov <maxim.sditanov@lge.com>
Reviewed-by: Igor Kuksyuk <igor.kuksiuk@lge.com>
Tested-by: Igor Kuksyuk <igor.kuksiuk@lge.com>
Reviewed-by: Oleksii Uratkin <oleksii.uratkin@lge.com>