Guard against NSNull resources