Support both node entities and stdClass objects in nodeDelete()