Ignore empty subfolders when identifying submodules
# What does this PR do?

As point out by @NielsRogge, when someone has an empty subfolder with just pycache in them (after checking out a branch for instance), the new check in `check_inits` will fail. This PR addresses that.
Thanks for fixing!