fix bug that caused YML reading to fail if the last line contained only spaces or (I think also) only tabs.
fix bug that caused YML reading to fail if the last line contained only spaces or (I think also) only tabs.

alexanderbrown/masiv