Properly handle FS events for directory in the file tree.

An FS event for a directory with no "added" or "removed" means that
the directory contents should be reloaded. This change does that
and fixes #9510 and #9517.
minor nit: it's easier to read `if () {} else {}` which would obviate the need for the `return` statement