[ticket/10866] Handle empty path

PHPBB3-10866