core_read's ParseScript(): minor cleanups
core_read's ParseScript(): minor cleanups

- use .empty() rather than .size() == 0
- use a const_iterator rather than BOOST_FOREACH
- validate iterators before creating a string from them

domob1812/crowncoin,domob1812/crowncoin,syscoin/syscoin,Crowndev/crowncoin,domob1812/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,Infernoman/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,syscoin/syscoin,domob1812/crowncoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,Crowndev/crowncoin,syscoin/syscoin,Crowndev/crowncoin,Crowndev/crowncoin