Fixed static analyzer warning

framesetter could be nil (this warning may only occur in Xcode 4)
Merge pull request #275 from AriX/master

Fix static analyzer warning