Apparently using QByteArray with QML is asking for trouble.
A truthyness check on QByteArray does not return false if it is empty,
like it does for QString. Given that QML anyways doesn't know the
difference I suppose always using QString is an option.