Fixes an analyzer warning. variableValue could be nil.

assigning nil on line 112 would cause issues and the static analyzer thought so too.