Skip over empty paths to avoid an exception