add null-console check for IE when dev toolbar is hidden