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
Change-Id: I24fa20c623869e9740c345e067c3305ffc6af77f