Yes, I just updated manually Nice3point.Revit.Toolkit.dll version in the RevitLookup folder.
The only think I don't like about the IsRevitInApiMode is that uses the APIUIAPI.dll, if was RevitAPI.dll or RevitAPIUI.dll would be perfect.
I hope I'm correct, and is kinda simpler to explain that you need an AddIn Context to run a Revit code, with ActiveAddInId null is kinda obvious that Revit could reject the code without valid AddIn Context.