Check for null tabs before acquiring the parent tab.

This prevents a NPE when the current tab is null. This is very rare but can
still possibly happen.
1 file changed