Fixes an edge case when buffer is empty

Checks if we really want to remove a char from the buffer.
IMO this was also potentialy accessing invalid memory ranges!

https://github.com/sass/libsass/commit/e5a8ea77c340028cf23511ea52cb62505924241c