Crash when upgrading project to 4.16

Hello,

We are currently trying to upgrade a project from 4.15 to 4.16, we also build the editor from source.

The editor will launch fine, but when trying to open pretty much any blueprint or level, the editor crashes with the following error:

Assertion failed: Enclosing block should never be called [File:d:\git\wyrmbyte\UnrealEngine\Engine\Source\Runtime\AIModule\Private\EnvironmentQuery\EnvQueryTypes.cpp] [Line: 345]

UE4Editor_Core!FDebug::AssertFailed() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
UE4Editor_AIModule!FAIDynamicParam::GenerateConfigurableParamsFromNamedValues() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\aimodule\private\environmentquery\envquerytypes.cpp:353]
UE4Editor_AIModule!UBTTask_RunEQSQuery::PostLoad() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\aimodule\private\behaviortree\tasks\bttask_runeqsquery.cpp:155]
UE4Editor_CoreUObject!UObject::ConditionalPostLoad() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\obj.cpp:952]
UE4Editor_CoreUObject!EndLoad() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1535]
UE4Editor_CoreUObject!LoadPackageInternal() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1289]
UE4Editor_CoreUObject!LoadPackage() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:1377]
UE4Editor_CoreUObject!ResolveName() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:778]
UE4Editor_CoreUObject!StaticLoadObjectInternal() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:865]
UE4Editor_CoreUObject!StaticLoadObject() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\coreuobject\private\uobject\uobjectglobals.cpp:929]
UE4Editor_ContentBrowser!FAssetData::GetAsset() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\assetregistry\public\assetdata.h:250]
UE4Editor_ContentBrowser!SContentBrowser::OnAssetsActivated() [d:\git\wyrmbyte\unrealengine\engine\source\editor\contentbrowser\private\scontentbrowser.cpp:1873]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,TTypeWrapper __cdecl(TArray const & __ptr64,enum EAssetTypeActivationMethod::Type)>::Execute() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SContentBrowser,0,void __cdecl(TArray const & __ptr64,enum EAssetTypeActivationMethod::Type)>::ExecuteIfSafe() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_ContentBrowser!SAssetView::OnListMouseButtonDoubleClick() [d:\git\wyrmbyte\unrealengine\engine\source\editor\contentbrowser\private\sassetview.cpp:3755]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,TTypeWrapper __cdecl(TSharedPtr)>::Execute() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:327]
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,void __cdecl(TSharedPtr)>::ExecuteIfSafe() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:434]
UE4Editor_ContentBrowser!TBaseDelegate >::ExecuteIfBound() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:624]
UE4Editor_ContentBrowser!SListView >::Private_OnItemDoubleClicked() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\public\widgets\views\slistview.h:815]
UE4Editor_ContentBrowser!STableRow >::OnMouseButtonDoubleClick() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\public\widgets\views\stablerow.h:290]
UE4Editor_Slate!::operator()() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5460]
UE4Editor_Slate!FEventRouter::Route >() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:239]
UE4Editor_Slate!FSlateApplication::RoutePointerDoubleClickEvent() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5458]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonDoubleClickEvent() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5441]
UE4Editor_Slate!FSlateApplication::OnMouseDoubleClick() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5419]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:1708]
UE4Editor_Core!FWindowsApplication::DeferMessage() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:2127]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:867]
UE4Editor_Core!FWindowsApplication::AppWndProc() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:714]
user32
user32
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\launch\private\launchengineloop.cpp:3058]
UE4Editor!GuardedMain() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\launch\private\launch.cpp:166]
UE4Editor!GuardedMainWrapper() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UE4Editor!WinMain() [d:\git\wyrmbyte\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
kernel32
ntdll

I was able to fix this by opening the project in 4.15 and deleting all RunEQSQuery nodes from every behavior tree, then re-creating those nodes in 4.16.