Do not allow division by 0

Test: make
Bug: 151128233
Change-Id: Id1a50ae18a2cd014093a17701f6b62070a62e5ff
4 files changed