Added a function that allow test if printer is connected before actually
send the receipt to print.

This feature is useful when combined with PoS Prevent Sale plugin
preventing cashier to make sale when printer is disconnected or there is
any comunicatio error. Countries where make sale with out give away
printed receipt to customer will be beneficied from this feature.