Fixed Null String division exception

- Fixed error that occurs if amount/capacity is 0.