add a NULL test for frame_coutn before calling atoi.
Merge branch 'master' of github.com:ZoneMinder/ZoneMinder