Prevent crash on lines not being present in the destination stream

Might happen when e.g. preview or some ads is not present in the BD version.
Close #1.