Return internal error if no PSK is found when deriving the premaster secret

Signed-off-by: Guilhem Bryant <Guilhem.Bryant@arm.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index c0ebfcb..9a523f5 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -1859,6 +1859,7 @@
          * checked before calling this function
          */
         MBEDTLS_SSL_DEBUG_MSG( 1, ( "should never happen" ) );
+        return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
     }
 
     /*