Improving control flow

open_ticket_for_same_host is now called only once instead of twice as it
returns the same ticket anyway.
the open_ticket_with_same_summary function is therefore renamed and now
takes the ticket nr instead of calling open_ticket_for_same_itself.

This way the code is simpler to read.