602547e0a6
Apparently the implicit conversion done via '0 + string' is not robust enough. Adding a "to_i" to make sure we don't break if output is empty. Change-Id: I1e31761fd2129f57f61707d1920db835df7f7346 (cherry picked from commit 3991edcae0b6c80c9e3a05ea51ea7c2708233931)