[PATCH 4.17 021/336] skip LAYOUTRETURN if layout is invalid