external/webkit: check element object for NULL

Change-Id: I11ff74169b4ec0017400e9ef9451868ae00c6b1b