layout: Remove an overeager assertion
pango_layout_get_direction contained an assertion that would be hit when just iterating over all chars in the text of the layout (it gets hit when you get to the final newline).
Remove the assertion, so that this function is less of a trap.