Added the null check for response wrapper