Bug 862601: implemented tabs.getTabById

A simple O(n) implementation of a helper function to get a tab object based on an ID.