Allow barcodes to be nullpointers
libprison has the possibility to return nullpointers for createBarcode.
A nullpointer signals that this library can't create this barcode type.
This will be more likely in the future due to more modularity.
Handle these cases.
Differential Revision: https://phabricator.kde.org/D10630