fixed issue with testing for undefined on the window object
fixed issue regarding the "Select All" button appearing in the list view when there is nothing to select because the records are readonly