To get a record from a store you need to wait for the store to load either via a callback or an event listener, if you do a store.load and then right after it expect the store to be loaded then you will always get undefined.

To get a record you can use store.getAt(0) or one of the many find methods on the store. The way you are doing it will not work.