Changed the pullResource function to prevent a 500 error.

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.