Function for ensuring transform is looked up, and catching invalid motion plans