fixed CAT-531

added try/catch to location of possible exceptions

added default case to switch statement
Merge pull request #1083 from Catrobat/CAT-531

[CAT-531] NullPointerException: LookFragment.onActivityCreated
cat-531 #fixed