Fixed a bug that was causing exceptions in accurateCanvasBounds for empty strings