fixed exception on empty api results