Changed the pullResource function.

Added a check for the current resource and the breadcrumbs config "pathThruUnPub". This lets you to see a unpublished page and not get a 500 error.