Fix handling of null result.