Fixed #791: fixed crash when trying to parse an invalid address