This regression was introduced with CONFLUENCE-494 in commit 57660222db7b2eae414a6c768cc6fbd47381f9c3.