CFY-279 fixed get_resource usage now that it throws on errors instead of returning None