BUG: Fix seg fault converting empty string to object