Turns out I may be able to play some tricks and get around that happening... It is happening when the common.php file is being loaded from phpbb...
If I load the config.php file directly to get the table prefix, then check the disabled flag in the DB I can avoid loading the common.php file... now I just need to make it so you can distinguish between an incorrect setup and a disabled board...