division by zero fixed

division by zero in `_get_price_from_cost` fixed;