Fixed crash in delete unused branches plugin