BUG-869: reworked check for integer value.

Change-Id: I65b34369eeb546cd8f1716b2b7adfd25232ddece
Signed-off-by: Martin Vitez <mvitez@cisco.com>
Merge "BUG-869: reworked check for integer value."