Properly skip the qrcode test if PIL is not installed