Fixed issue with wrong bounding box detection of numeric texts when they were of number type instead of strings. Closes #2316.