Added a bit of safety to SML parsing

Ran into some parsing exceptions on these elements.