Bml fix snippet parsing

Fixed bug(addition of "undefined") in the formatting/creation of the snippet string that was created by the last commit