Fixed undef warning for valid mac

Normalize the return of undef for clean mac