base64ToBlob: avoid exception occur while base64str has no data