[BUGFIX] Fixed wrong use of global vars in ext_tables.php

Change-Id: Ib4955e40aec0e8dbebebf0363ef44bcaaac6d44a
Reviewed-on: https://review.typo3.org/29948
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer