I needed to change an option for PDO:
PDO::ATTR_ORACLE_NULLS => PDO::NULL_TO_STRING
Should be changed to:
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL
I am not sure why this was set in the first place, I hope it doesn't have side effects on other parts of the application, but it solves the question I asked.