Replaced getExtras().containsKey() with hasExtra()

If no extra's are provided getExtras returnes 'null' and thus
causes a NullPointerException when containsKey is called. This
change makes sure that hasExtra is used instead. And thus nolonger
crashes.