Fix compiler warning by exiting if wfp isn't set