Check that the session is running before trying to process frames - fixes crash when backgrounding app