Hisham issue25 app crash with measurement double tap

Added null checks at the app level (this should resolve issue #25) - also submitted couple of issues to be handled at the API level ( 292, 305).
@dotMorten for code Review.