Nicholas had actually agreed to a constitution and had legal limits. Putting kings on trial had precedent by that point, like the deposition of Louis XVI of France and Charles I of England.
I imagine that the Bolsheviks or the Duma would have obtained a guilty verdict somehow, whether for things Nicholas actually did or trumped up charges, with less risk of a backlash if they executed him instead of a more assassination style killing of the imperial family.
u/kieslowskifan outlines some of the reasons why a trial did not occur in the following comment.