Add a secure exception handler to prevent filtering on nil value bug.