fixed ShutdownableNodeModel

I have fixed the ShutdownableNodeModel. I use IfThenElse constraint for HostingEnd moment of the node.
You can test it with the testcase testShutdownable() in the class ShutdownableNodeModelTest.java