Handle null source/dest rects properly
Handle invalid source surface properly