Looking at the implementation of the parser, it actually returns an array.  So I think we want to check the returned array and if it contains >= 1 item, we return the first item.  If it returns no items, we return null.  And just for safety, we could wrap the call in a try and return null in the case an exception is thrown.