Merge "Check target api version before crashing apps." into oc-mr1-dev