another fix for warnings when null dimensions are computed due to invalid source images