Fix type of getCanvasElementByIdImpl

@garyb Can you please review? Thanks.