Fixes crash with custom quest function tables