ENH: Filter out empty lists from get_open_orders.

Filter out empty lists from `get_open_orders` so that we have consistent
behavior between the case where a user has never placed an order and the case
where the user has placed an order but it has been executed or cancelled.

Also adds a test for the behavior of get_open_orders, which was previously
lacking.