PLA-984 Added exception for empty result set