Handle potential case where warnings returns nil