Fixed error handling in (*Context)getOption()