Fate of the Josephson effect in thin-film superconductors