fix panic if allowance is set to 0 and PeriodSpending is called
fix panic if allowance is set to 0 and PeriodSpending is called

mtlynch/Sia,NebulousLabs/Sia,mharkus/Sia,mtlynch/Sia,mharkus/Sia,NebulousLabs/Sia