The singer, born Montero Hill, will have his criminal case dismissed if he continues his treatment for bipolar disorder and obeys all laws for the next two years