
The problem occurred when calling `brew reinstall` on a cask with an out of date caskfile. To solve the problem Cask::Installer#uninstall_existing_cask has been changed to catch a possible CaskInvalidError when trying to load outdated caskfiles using Cask::CaskLoader#load.