Fixed filtering of unknown input type

@nhaarman