[sensor] Fix compound sensor, which was broken by timestamp addition

We previously test against "local_data" to be empty, which is never the
case nowadays, as it always contains at least a timestamp. Use a
specific flag to check for late initialization.