Added safeguard for grids which don't autoload their store

I have a few grids configured with c.data_store = { auto_load: false } ...
this.selectedRecords.length is undefined as long as the store is not loaded and thus the line breaks without safeguarding against undefined.