fixed Error: undefined method `[]' for nil:NilClass

removed nesting level
Merge pull request #92 from StephanDollberg/4471_sc_nil_error

Fixed Error: undefined method `[]' for nil:NilClass