in cvx_solve, make sure psd is only referenced if it has been set

Signed-off-by: Jacob Emmert-Aronson <jre2718@berkeley.edu>