Updated caffe.py to prevent hard failure if net_ isn't found

I've been running with this change locally as a workaround to the pop() failing if it can't find 'net_'.