Fix bug#4586 Javascript error after moving a column

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>