Although that shouldn't be the issue, you should be able to fetch the selectedRow directly without defining a constable..... it is weird you're getting null. What happens when you hover over selectedRow?
In fact, i tried myself and managed to do it:
There could be a race condition, what if you try to debounce your success event handler in your first query to give time for the table row to be selected properly?