Fix undefined issues when oa_toolbar not enabled