fixes in clear_table function
Merge branch 'develop' of github.com:frappe/frappe into develop