Fixed passing third xhr callback argument only if explicitly expected