Exclude the_content (); from page password protection

You can use the conditional tag if ( post_password_required() ) : for check, if a password required and then exclude the_content().

// view content, only if password is required
if ( post_password_required() )
    the_content();

Also it is possible that you go about the global var $post

if ( ! empty( $post->post_password ) ) :

Ot, the last chance and not so fine, bute usefull is to enhance the query:

AND post_password = ''