Verify that a file exists before we share it

Prevents invalid entries from getting into the share table and folder

cc @karlitschek @DeepDiver1975 @LukasReschke