Close overlay when invalid image selected

Bug: 59810
Change-Id: Ic6cf570b78a50cf23ab69a5ccb0da8f873959041
Merge "Close overlay when invalid image selected"