While Gengar may be immune to normal attacks yes, he does still have a physical form, and being that he was being held and thrown by psychic energy, i doubt he technically would have the time or energy to actually "phase" to the point where Cal would pass through him...

As far as him being under the gengar, you shouldnt worry too much about that, as getting up off the ground doesnt waste an action...

~GL