Fix python->cpp cast for empty images
During 10.1.0rc2 tests we found, that python->cpp cast fails for empty images
The problem is that for images we tried to access first element to check if it is sequence. Now this check skipped for empty (len=0) values.
This case added to tests