Properly print `nil` type in error.