Fixes a regression caused by https://dart-review.googlesource.com/c/sdk/+/52461 Change-Id: I59ba32c2f31e70620bea58466935ed47ed61c1dc Reviewed-on: https://dart-review.googlesource.com/53361 Reviewed-by: Johnni Winther <johnniwinther@google.com>