Fixed another undefined index issue in the mock client