Fix NPE when unknown prepared statement ID is used

Patch by Tyler Hobbs; reviewed by Sylvain Lebresne for CASSANDRA-7454