Allowed bytearray conversion function to accept None and NULL