Fix issue with not working select the last tab preference …
Pinned locations for frames were nullified and due to that check by last accessed time didn't work. Added null case and tests for getFrameByLastAccessedTime function. Fix #8357