A condition for avoiding CVX related errors

Solution using MATLAB’s try catch is provided in Detecting of returning error in CVX