platedetector: Avoid use of not initialized memory

Change-Id: I43ad68713c33bd0c055fa9dabaf02ded9e3a73ec