bug fixes for using Scale transition on flash target.

On flash target getChildIndex may not be called with "null" as parameter.