GCP-5605 (Added input checking in Transform method)