handle null dates on purchase order and sales order screens

fixes #157