Fix crash


The timeline was crashing if the target was undefined e.g.
the id was missing.

Change-Id: I3633481d6431f2d0a61ae770e865f3bc8a70ab37
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
commitcb02df8b4e51a9f19df705cb1174ef5907068c02
parent89bb540a871361afdc2f46af2d752ce4b5c3637e
authorThomas Hartmann <thomas.hartmann@qt.io>
committerTim Jenssen <tim.jenssen@qt.io>
commit timeThu, 14 Dec 2017 14:03:47 +0000