Fixed errors thrown while accessing unpublished nodes.