Fix & Unit test for preparestatement notices

A fix for the notice when trying to create a prepared statement object from insert without predefined values.