Throwing exception when not able to get folder's children