Protect frame selection from unknown frames

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>