KFSUPGRADE-665 fixed script to close cursors and skip blank results
Merge branch 'master' of https://github.com/CU-CommunityApps/upgrade_scripts