Handle cases where Proc returns nil