Fixes a regression from 2bd1bbc42. Thanks Daniel Wiesmann for the report and Tim Graham for the review.
2bd1bbc42