Fix for issue where object type resolution would fail if the item was not published. This is because GetById(int) gets the item regardless of its published status. Changed to use GetPublishedVersion(int) will always get the most recently published version of the item.