[rubbos] (change:minor) Moved some error checking code from 'prepare' to 'postExecute' method and enforced some other checks