Fix for issue when file or directory name is "0"

Summary: If name of file or directory is `0` - this name shouldn't be removed in `::resolveDotDots` method.
Solution is to use `strlen` function as callback in `array_filter` - it will works similarly, but keeps values of 0 (zero).

Backport of #4266
(cherry picked from commit c2c9589)
Merge pull request #4359 from nazar-pc/backport_for_3.3_of_4266

Fix for issue when file or directory name is "0" (backport for 3.3)