Fixed app crash after clicking on photo before starting recognition