Fix rare bug that could cause a lua error

For some reason sometimes the table that holds all the windows with idx
values is not fully updated, which may cause an issue with tMemberData
being nil.