ajp: Added check if derivedData exists.