fixing null pointer exception error on /style/...

try/catch exception wasn't actually doing anything useful for me
apparently it's smarter to check for the key before you pull it :-D