Add guards for unsupported subqueries join plan, optimize the possible subqueriese

Encapsulate these 4 lines into "checkPushedDownJoins(List<AbstractPlanNode> planNodes, int nestLoopCount);"