Fix compatibility with webtrees < 1.5.2