Getting a no_viable_alt_exception only when trying to filter using a scripted field

I created another post here to reference null pointers in filters using scripted fields.