[1.4.x] Fixed #20523 - Incorrect form field for FilePathField.

Thanks sane4ka.sh@ for the report.

Backport of 1fdc3d256d from master