HUE-1920 [impala] Hide database is locked message

Do not send close or cancel query calls when id is -1