Error on empty devicelist

If no devices were returned the valid() returned true. Resulting in an error on current()