github/openhab issue #1013: When the value was an integer and the format was like "%.1f", an exception was thrown

Signed-off-by: Martin <martin+github@planet-renner.net>