Make destinations work with linkhandler

The check for is_numeric only works for page ids, but if linking to records, e.g. with linkhandler, the destination includes keywords and colons and thus the check fails