Fix IndexOutOfRangeException

When files contain lines that consist of white spaces only and trim_trailing_whitespace is set to true for those files, the plugin crashes when trying to save. This causes the trim_trailing_whitespace rule to not be applied.