fix error when oncriteria is null for outer apply
fix error when oncriteria is null for outer apply

dfaruque/Serenity,volkanceylan/Serenity,dfaruque/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,dfaruque/Serenity,WasimAhmad/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,WasimAhmad/Serenity,rolembergfilho/Serenity,volkanceylan/Serenity,rolembergfilho/Serenity,WasimAhmad/Serenity,dfaruque/Serenity,volkanceylan/Serenity,volkanceylan/Serenity,dfaruque/Serenity,rolembergfilho/Serenity