Do not use remove() on maplinks
This was crashing VE, which isn't too strange as staticmap frames do
not have maps with the remove() method. They are actually links
(aka linkboxes).
Follow-up to: I0ae9065
Bug: T250620
Bug: T251053
Change-Id: I24fa20c623869e9740c345e067c3305ffc6af77f
(cherry picked from commit ef9410a081cf33fd82a435badf608752a5a09337)