FTP: Fixed bug in MLSD/MLST handling.

It failed when there was an active content-type module.

Fixes [bug 7229].
Merge branch 'patches/bug7229' into 5.4

* patches/bug7229:
  FTP: Fixed bug in MLSD/MLST handling.