Thinko in commit abb173392, which introduced this function. Report: https://postgr.es/m/20170511215234.1795.54347@wrigleys.postgresql.org
abb173392