BUG: mantis #1408: added small value protection to division