engine: Fix potential NumberFormatException in OsRepositoryImpl

Added NumberFormatException check in getInt method
to guard against bad number format.

Change-Id: I3ec4c9704d35b7f2955ed41761d4f019969897c1
Signed-off-by: Vojtech Szocs <vszocs@redhat.com>