Please see the discussion from the commit 6496acf. While some of the themes were fixed in subsequent pull requests not all themes such as the one I was using were fixed. I've done a find / replace to implement the fix on the remaining themes and it has fixed the theme I was using.
Fix rvm prompt issue introduced @6496acf
This issue appears to have been fixed since I opened this.