Made PGN selector in demo app work.
Fixed crash when receiving invalid messages