Decrease image counter if an image could not be captured from webcam
Decrease image counter if an image could not be captured from webcam

Should keep rendering of timelapse from breaking if only a couple of images couldn't be captured due to whatever reason. Suggested by @midopple in #344
(cherry picked from commit bf9d5ef)

MaxOLydian/OctoPrint,JackGavin13/octoprint-test-not-finished,skieast/OctoPrint,eliasbakken/OctoPrint,mcanes/OctoPrint,shohei/Octoprint,beeverycreative/BEEweb,mrbeam/OctoPrint,dragondgold/OctoPrint,C-o-r-E/OctoPrint,dansantee/OctoPrint,leductan-nguyen/RaionPi,aerickson/OctoPrint,Skeen/OctoPrint,CapnBry/OctoPrint,Javierma/OctoPrint-TFG,alex1818/OctoPrint,aerickson/OctoPrint,masterhou/OctoPrint,alex1818/OctoPrint,leductan-nguyen/RaionPi,aerickson/OctoPrint,shaggythesheep/OctoPrint,JackGavin13/octoprint-test-not-finished,uuv/OctoPrint,uuv/OctoPrint,Javierma/OctoPrint-TFG,bicephale/OctoPrint,javivi001/OctoPrint,MoonshineSG/OctoPrint,masterhou/OctoPrint,ryanneufeld/OctoPrint,Voxel8/OctoPrint,SeveQ/OctoPrint,sstocker46/OctoPrint,punkkeks/OctoPrint,eddieparker/OctoPrint,javivi001/OctoPrint,mcanes/OctoPrint,foosel/OctoPrint,Mikk36/OctoPrint,foosel/OctoPrint,EZ3-India/EZ-Remote,punkkeks/OctoPrint,sstocker46/OctoPrint,shaggythesheep/OctoPrint,nickverschoor/OctoPrint,nickverschoor/OctoPrint,jneves/OctoPrint,EZ3-India/EZ-Remote,senttech/OctoPrint,jneves/OctoPrint,nicanor-romero/OctoPrint,mayoff/OctoPrint,Voxel8/OctoPrint,chriskoz/OctoPrint,masterhou/OctoPrint,SeveQ/OctoPrint,mrbeam/OctoPrint,spapadim/OctoPrint,C-o-r-E/OctoPrint,beeverycreative/BEEweb,JackGavin13/octoprint-test-not-finished,spapadim/OctoPrint,Jaesin/OctoPrint,MoonshineSG/OctoPrint,CapnBry/OctoPrint,uuv/OctoPrint,Voxel8/OctoPrint,eddieparker/OctoPrint,MolarAmbiguity/OctoPrint,MolarAmbiguity/OctoPrint,ryanneufeld/OctoPrint,alex1818/OctoPrint,dragondgold/OctoPrint,dansantee/OctoPrint,CapnBry/OctoPrint,shohei/Octoprint,Skeen/OctoPrint,mcanes/OctoPrint,Javierma/OctoPrint-TFG,Salandora/OctoPrint,senttech/OctoPrint,markwal/OctoPrint,bicephale/OctoPrint,eliasbakken/OctoPrint,leductan-nguyen/RaionPi,bicephale/OctoPrint,senttech/OctoPrint,shaggythesheep/OctoPrint,C-o-r-E/OctoPrint,eddieparker/OctoPrint,spapadim/OctoPrint,Jaesin/OctoPrint,Skeen/OctoPrint,eliasbakken/OctoPrint,JackGavin13/octoprint-test-not-finished,Salandora/OctoPrint,Mikk36/OctoPrint,Salandora/OctoPrint,foosel/OctoPrint,MaxOLydian/OctoPrint,nicanor-romero/OctoPrint,mayoff/OctoPrint,mrbeam/OctoPrint,chriskoz/OctoPrint,Jaesin/OctoPrint,javivi001/OctoPrint,nicanor-romero/OctoPrint,markwal/OctoPrint,MaxOLydian/OctoPrint,skieast/OctoPrint,leductan-nguyen/RaionPi,Mikk36/OctoPrint,ErikDeBruijn/OctoPrint,dansantee/OctoPrint,ErikDeBruijn/OctoPrint,Jaesin/OctoPrint,MolarAmbiguity/OctoPrint,shohei/Octoprint,EZ3-India/EZ-Remote,chriskoz/OctoPrint,ryanneufeld/OctoPrint,foosel/OctoPrint,Salandora/OctoPrint,jneves/OctoPrint,MoonshineSG/OctoPrint,sstocker46/OctoPrint,SeveQ/OctoPrint,MoonshineSG/OctoPrint,beeverycreative/BEEweb,dragondgold/OctoPrint,EZ3-India/EZ-Remote,senttech/OctoPrint,bicephale/OctoPrint,mayoff/OctoPrint,ErikDeBruijn/OctoPrint,nickverschoor/OctoPrint,skieast/OctoPrint,markwal/OctoPrint,shohei/Octoprint,nickverschoor/OctoPrint,CapnBry/OctoPrint,chriskoz/OctoPrint,ryanneufeld/OctoPrint,beeverycreative/BEEweb,punkkeks/OctoPrint,Javierma/OctoPrint-TFG,shohei/Octoprint