BUG: Fix seg fault converting empty string to object
Merge pull request #4722 from mtkni/master

BUG: Fix seg fault converting empty string to object