Subject : Resloved update query crash

Description:
1. Added if condition to check whether cursor is empty or not.