bugfix: Ctrl-A throws error when no selection (#1800)

The problem was occuring when the table had no selected cell, therefore we can't see it as not selected.
Another way to solve this issue is to unsubscribe the keydown event when the user focus somewhere else but this is the better way to keep it simple.

Tested on Firefox 32, IE 9 and Chrome 37