Move use of nodeManager.isDeleted in DeleteEntityAction to QueryContext API

signed-off-by: Jakub Wieczorek <jakub.wieczorek@neotechnology.com>